using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    public class ElectiveCourseConfiguration : Base.BaseEntityConfiguration<ElectiveCourse>
    {
        public override void Configure(EntityTypeBuilder<ElectiveCourse> builder)
        {
            base.Configure(builder);

            builder.ToTable("electiveCourse");


            builder.Property(x=>x.Coursetext).HasColumnName("course_text").HasMaxLength(2000000).HasColumnOrder(1);
            builder.Property(x=>x.ClassId).HasColumnName("class_id").HasMaxLength(2000000).HasColumnOrder(2);
            builder.Property(x=>x.termId).HasColumnName("term_id").HasMaxLength(2000000).HasColumnOrder(3);
        }
    }
}